#ifndef __AUDIOENCODER_H__
#define __AUDIOENCODER_H__

#include <stdio.h>
#include "audiosource.h"

typedef struct AUDIOENCODER AUDIOENCODER;

struct AUDIOENCODER {
	int (*encode_func)(AUDIOENCODER *encoder, int length);
	int (*eof_func)(AUDIOENCODER *encoder);
	void (*dispose_func)(AUDIOENCODER *encoder);
};

int audioencoder_encode(AUDIOENCODER *encoder, int length);
int audioencoder_eof(AUDIOENCODER *audioencoder);
void audioencoder_dispose(AUDIOENCODER *audioencoder);

#endif
